<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ddh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ddh" data-rule="required" class="form-control" name="row[ddh]" type="text"
                value="{$row.ddh|htmlentities}" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-kh" data-rule="required" data-source="tvsd/kh/index" data-field="name"
                class="form-control selectpage" data-primary-key="name" name="row[kh]" type="text"
                value="{$row.kh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lxr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lxr" class="form-control" name="row[lxr]" type="text" value="{$row.lxr|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dh" class="form-control" name="row[dh]" type="text" value="{$row.dh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cd" data-rule="required" data-source="tvsd/cd/index" data-field="name"
                class="form-control selectpage" data-primary-key="name" name="row[cd]" type="text"
                value="{$row.cd|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cp" data-rule="required" data-source="tvsd/cl/selectpagekk" data-field="name"
                class="form-control selectpage" data-primary-key="name" data-params='{"custom[c-cd]":"name"}'
                name="row[cp]" type="text" value="{$row.cp|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zws')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zws" class="form-control" name="row[zws]" type="text" value="{$row.zws|htmlentities}"
                readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jsy1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jsy1" data-rule="required" data-source="tvsd/jsy/index" data-field="name"
                class="form-control selectpage" data-primary-key="name" name="row[jsy1]" type="text"
                value="{$row.jsy1|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jsydh1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jsydh1" class="form-control" name="row[jsydh1]" type="text" value="{$row.jsydh1|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jsy2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jsy2" data-source="tvsd/jsy/index" data-field="name" class="form-control selectpage"
                data-primary-key="name" name="row[jsy2]" type="text" value="{$row.jsy2|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jsydh2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jsydh2" class="form-control" name="row[jsydh2]" type="text" value="{$row.jsydh2|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kstime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-kstime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                data-use-current="true" name="row[kstime]" type="text" value="{$row.kstime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jstime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jstime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                data-use-current="true" name="row[jstime]" type="text" value="{$row.jstime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Scd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-scd" data-rule="required" class="form-control" name="row[scd]" type="text"
                value="{$row.scd|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tj')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tj" class="form-control" name="row[tj]" type="text" value="{$row.tj|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mdd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mdd" data-rule="required" class="form-control" name="row[mdd]" type="text"
                value="{$row.mdd|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Je')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-je" data-rule="required" class="form-control" name="row[je]" type="number"
                value="{$row.je|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bz')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bz" class="form-control" name="row[bz]" type="text" value="{$row.bz|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ddr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ddr" data-rule="required" class="form-control" name="row[ddr]" type="text"
                value="{$row.ddr|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"
                        value="{$key}" {in name="key" value="$row.status" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="text" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>